# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=swaylockd
pkgver=0.1.0
pkgrel=1
pkgdesc="A dumb launcher to spawn swaylock and ensure it runs no matter what"
url="https://github.com/jirutka/swaylockd"
arch="all"
license="MIT"
depends="swaylock"
makedepends="asciidoctor"
subpackages="$pkgname-doc"
source="https://github.com/jirutka/swaylockd/archive/v$pkgver/swaylockd-$pkgver.tar.gz"

build() {
	make
}

check() {
	XDG_RUNTIME_DIR="$builddir" ./build/swaylockd --version
}

package() {
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="
8ac850d4d5ceb32cc62a213eba1cdad14b51f6f957cffea82c64853f5e347a3ddcfbd66fa021e1a90714d10042d586e1929161f3606a5d55dcb0bb1d28494e59  swaylockd-0.1.0.tar.gz
"
